#include "protocol.h"

namespace cores
{
    namespace protocols
    {
        Protocol * Protocol::globalInstance{nullptr};

        Protocol::Protocol()
        {
            if (Protocol::globalInstance == nullptr)
                Protocol::globalInstance = this;
        }

        Protocol::~Protocol()
        {
            if (Protocol::globalInstance == this)
                Protocol::globalInstance = nullptr;
        }
    }
}